package model;

import java.util.List;

public class Department {
	private Integer id;
	private Integer pid;
	private String code;
	private String name;
	private String remark;
	private String leaf;
	private Integer level;
	private String address;
	private String website;
	private String tel;
	private String contacts;
	private Integer areaid;
	private Integer isbasic;
	private Boolean expanded = true;
	private List<Department> children;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public Boolean getExpanded() {
		return expanded;
	}

	public void setExpanded(Boolean expanded) {
		this.expanded = expanded;
	}

	public List<Department> getChildren() {
		return children;
	}

	public void setChildren(List<Department> children) {
		this.children = children;
	}

	public String getLeaf() {
		return leaf;
	}

	public void setLeaf(String leaf) {
		this.leaf = leaf;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public Integer getIsbasic() {
		return isbasic;
	}

	public void setIsbasic(Integer isbasic) {
		this.isbasic = isbasic;
	}

	@Override
	public String toString() {
		return "Department [id=" + id + ", pid=" + pid + ", code=" + code
				+ ", name=" + name + ", remark=" + remark + ", leaf=" + leaf
				+ ", level=" + level + ", address=" + address + ", website="
				+ website + ", tel=" + tel + ", contacts=" + contacts
				+ ", areaid=" + areaid + ", isbasic=" + isbasic + ", expanded="
				+ expanded + ", children=" + children + "]";
	}

}
